<?php
	session_start();
	include_once("../fnt-lib/_class_player.php");	
	
	$_SESSION['player']	 = new _player();
	if($_POST['submit'] == 'Login'){
		$_SESSION['player']->login($_POST['login'],$_POST['password']);
	}
	
	echo ($_SESSION['player']->name()),'<br>';
//	$player->pw_chg('29g266hbf6','tech1234','tech1234');
	  
	if(!$_SESSION['player']->is_loggedin()){
		echo($_SESSION['player']->form_login()),'<br>';
	}else{
		echo($_SESSION['player']->form_logout()),'<br>';
	}
	
	
	
	
	
	
	
	if($_SESSION['player']->is_loggedin()){
		echo 'LOGGED IN<br>';
	}else{
		echo 'NOT LOGGED IN<br>';
	}
	if($_SESSION['player']->is_admin()){
		echo 'ADMIN<br>';
	}else{
		echo 'NOT ADMIN<br>';
	}

	//$player->forgot_pw();
	
	
?>